package cz.vse.javaee.album;

/**
 * Created by IntelliJ IDEA.
 * User: zslajchrt
 * Date: 19.4.11
 * Time: 20:11
 * To change this template use File | Settings | File Templates.
 */
@java.lang.annotation.Target({java.lang.annotation.ElementType.TYPE})
@java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME)
public @interface EntityFragment {
    /**
     * @return JPQL query for reading the fragment
     */
    String read();

    /**
     * @return JPQL query for writing the fragment
     */
    String write() default "";

    String id();
}
